//接口文件
import store from "./store"
import CONSTANT from "./constant"

export default {
  data() {
    return {

    }
  },
  methods: {
    //同步修改+
    _plus() {
      store.commit(CONSTANT.PLUS)
    },
    //异步修改-
    _minus(){
      store.dispatch(CONSTANT.MINUS);
    }
  },

  computed: {
    count() {
      return this.$store.state.count;
    }
  },
}